package com.ffyc.backserver.service;

import com.ffyc.backserver.dao.AdminDao;
import com.ffyc.backserver.dao.RoleDao;
import com.ffyc.backserver.model.Admin;
import com.ffyc.backserver.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional//Sping事务
public class RoleService {
@Autowired
RoleDao roleDao;


    public List<Role> findRole() {
        return roleDao.findRole();
    }
}
